﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="LectorInfoDetail.aspx.cs" Inherits="Page_LectorInfoDetail" Title="Untitled Page" %>

<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript" src="../Js/jquery-1.2.6.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.2.6-vsdoc.js"></script>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">

        function ChangeDetailView1() {
            var height = document.body.clientHeight;
            var infoDetail = document.getElementById("trInfo1");
            if (infoDetail.style.display == 'none') {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-collapse.png";
                infoDetail.style.display = '';
            }
            else {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-expand.png";
                infoDetail.style.display = 'none';
            }
            PageResize();
        }
        function editExperience(id) {
            var width = 330;
            var height = 400;
            window.open("NewLectorExperience.aspx?LectorID=<%=LectorID %>&ExperienceID=" + id + "&Nocache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }
        function addExperience() {
            var width = 330;
            var height = 400;
            window.open("NewLectorExperience.aspx?LectorID=<%=LectorID %>&Nocache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }

        function editInfo() {
            var width = 635;
            var height = 400;
            window.open("NewLector.aspx?LectorID=<%=LectorID %>&Manage=true&Nocache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }
        
        function openExperience(obj, content) {
            var decodecontent = decodeURI(content);
            var div = "<div class='experience'>" + decodecontent + "</div>";
            $(obj).append(div);
            $(obj).find(".experience")
            .stop(true)
            .show("slow");
            $(obj).mouseout(function() {
                $(this).find(".experience")
            .stop(true)
            .hide("slow");
            })
        }


    </script>
    <style type="text/css">
        .experience
        {
            width:200px;
            height:200px;
            display:none;
            position:absolute;
            background:#D4D0C8;
            color:black;
            filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#98B2E6', endColorStr='#3568CC', gradientType='1')
        }
        .blue-01
        {
            width:68px;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <table cellspacing="2" cellpadding="0" border="0" id="tblOperator" runat="server">
        <tr runat="server" id="trToolMenu">
            <td class="ToolMenu">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="addExperience();">
                    <span>
                        <img src="../Images/Icon/Object/tz-add.gif" alt="" /></span><span>新增讲课经历</span>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenu">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="editInfo();">
                    <span>
                        <img src="../Images/Icon/Object/tz-edit.gif" alt="" /></span><span>编辑</span>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="详细" Selected="true" />
    <wsc:TabberHeader ID="thExperience" runat="server" DivID="div2" Title="讲课经历" Selected="true" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <div style="display: none;">
        <asp:Button runat="server" ID="btnRefresh" OnClick="btnRefresh_Click" />
    </div>
    <table cellspacing="0" cellpadding="0" border="0" class="" width="100%"">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                        </td>
                        <td width="0" style="display: none;">
                            <a href="#">
                                <img src="../Images/Icon/icon-collapse.png" alt="字段" style="cursor: pointer;" onclick="ChangeDetailView1();"
                                    id="imgExpand1" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo1">
            <td>
                <table id="tblDetail" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</strong></a>
                                <asp:Literal ID="tbFullName"  runat="server"></asp:Literal>
                            </div>
                        </td>
                    </tr>
                                        <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位：</strong></a>
                                <asp:Literal ID="ltDepartmentName"  runat="server"></asp:Literal>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务：</strong></a>
                                <asp:Literal ID="ltJobPosition"  runat="server"></asp:Literal>
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</strong></a>
                                <asp:RadioButtonList RepeatDirection="Horizontal" RepeatLayout="Flow" runat="server"
                                    ID="rblSex">
                                    <asp:ListItem Text="男" Value="男" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="女" Value="女"></asp:ListItem>
                                </asp:RadioButtonList>
                                </div>
                        </td>
                    </tr>
                    <tr id="trAttachment" runat="server" style="display:none;">
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>出生年月：</strong></a>
                                <asp:Literal  ID="tbBirthday" runat="server"></asp:Literal>
                                </div>
                        </td>
                    </tr>
                    <tr style="display:none;">
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;历：</strong></a>
                                <asp:Literal ID="tbBackNvarchar1"  runat="server"></asp:Literal>
                            </div>
                        </td>
                    </tr>
                    <tr style="display:none;">
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>民&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;族：</strong></a>
                                <asp:Literal ID="tbBackNvarchar2"  runat="server"></asp:Literal>
                            </div>
                        </td>
                    </tr>
                    <tr style="display:none;">
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>政治面貌：</strong></a>
                                <asp:Literal ID="tbBackNvarchar3"  runat="server"></asp:Literal>
                            </div>
                        </td>
                    </tr>
                    <tr id="tr1" runat="server">
                        <td class="DetailTitle">
                            <div class="fixWidth2">
                                <a class="blue-01"><strong>简&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;介：</strong></a>
                                
                            </div>
                        </td>
                    </tr>

                </table>
            </td>
        </tr>
    </table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="box01">
    <tr>
        <td valign="top" class="content" id="MainContentTD">
            <div id="MainContent" style="overflow: auto;height:230px;padding-left:8px;" class="ScrollDiv">
<asp:Label ID="ltBriefInfo" runat="server"></asp:Label>
                
            </div>
        </td>
    </tr>
</table>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
        <wsc:ListHeader ID="lhNo" runat="server" Title="&nbsp;序号" Width="50" />
                <wsc:ListHeader ID="ListHeader1" runat="server" Title="&nbsp;班级名称" Width="80" />
        <wsc:ListHeader ID="lhBeginTime" runat="server" Title="&nbsp;开始时间" Width="80" />
        <wsc:ListHeader ID="lhEndTime" runat="server" Title="&nbsp;结束时间" Width="80" />
        <wsc:ListHeader ID="lhMainContent" runat="server" Title="&nbsp;主要内容" Width="150" />
        <wsc:ListHeader ID="lhEdit" runat="server" Title="&nbsp;编辑" Width="50" />
        <wsc:ListHeader ID="lhDelete" runat="server" Title="&nbsp;删除" Width="50" />
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <asp:Repeater ID="rptOrderInfo" OnItemCommand="rptOrderInfo_ItemCommand" runat="server">
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand; text-align: left;"
                    class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <td style="display: none;">
                        <%# DataBinder.Eval(Container.DataItem,"ID") %>
                    </td>
                    <td width="50">
                        <%# Container.ItemIndex + 1%>
                    </td>
                    <td width="80">
                        <%# DataBinder.Eval(Container.DataItem, "TrainClassName")%>
                    </td>
                    <td width="80">
                        <%# DataBinder.Eval(Container.DataItem, "BeginTime")%>
                    </td>
                    <td width="80">
                        <%# DataBinder.Eval(Container.DataItem, "EndTime")%>
                    </td>
                    <td width="150">
                        <span onmouseover='openExperience(this,"<%# DataBinder.Eval(Container.DataItem, "MainContent")%>")'>
                            <%# DataBinder.Eval(Container.DataItem, "ShortContent")%></span>
                    </td>
                    <td width="50">
                        <asp:ImageButton ID="ibtnEdit" runat="server" ImageUrl="~/Images/Icon/Action/edit.gif"
                            CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' />
                    </td>
                    <td width="50">
                        <asp:ImageButton ID="ibtnDelete" runat="server" ImageUrl="~/Images/Icon/Action/delete.gif"
                            CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' />
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>

</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="Server">
    var height = document.body.clientHeight; var MainContent2 = document.getElementById("MainContent");   
if (height > 305 ) { MainContent2.style.height=(height-200)+"px"; }

   var width = document.body.clientWidth;
	if(width > 20)
	    document.getElementById("MainContent").style.width = (width-5) + "px";
</asp:Content>
